package jsyf.oa.entity.device;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by y on 2018/6/25.
 */
@Entity
@Table(name = "T_DVC_BUCKET", schema = "oa", catalog = "")
public class DeviceBucketEntity extends BaseEntity {
    private String modelId;
    private String bucketCapacity;

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getBucketCapacity() {
        return bucketCapacity;
    }

    public void setBucketCapacity(String bucketCapacity) {
        this.bucketCapacity = bucketCapacity;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("MODEL_ID", this.getModelId());
        obj.put("BUCKET_CAPACITY", this.getBucketCapacity());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_DVC_BUCKET";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("MODEL_ID", "modelId");
        obj.put("BUCKET_CAPACITY", "bucketCapacity");
        return obj;
    }
}
